




using System;
using System.Data;
using THSERP.BusinessEntities;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
using THSLib;
using THSERP.BaseProvider;

namespace THSERP.Modules.Account
{
    public class AccountEntities : ERPModuleEntities
    {
        #region Declare Constant
        public readonly static String strGLAccountsObjectName = "GLAccounts";

        #endregion
        
        #region Declare all entities variables
        private GLAccountsInfo _gLAccountsObject;
        private THSList<GLAccountsInfo> lstGLAccountsList;
        #endregion

        #region Public Properties
        public GLAccountsInfo GLAccountsObject
        {
            get
            {
                return _gLAccountsObject;
            }
            set
            {
                _gLAccountsObject = value;
            }
        }

        public THSList<GLAccountsInfo> GLAccountsList
        {
            get
            {
                return lstGLAccountsList;
            }

            set
            {
                lstGLAccountsList = value;
            }
        }
        
        #endregion

        #region Constructor
        public AccountEntities()
            : base()
        {
            _gLAccountsObject = new GLAccountsInfo();


        }

        #endregion

        #region Init Main Object,Module Objects functions
        public override void InitMainObject()
        {

            MainObject = GLAccountsObject;
        }

        public override void InitModuleObjects()
        {
            lstGLAccountsList = new THSList<GLAccountsInfo>();
            //lstGLAccountsList.InitTHSList(this, THSUtil.GetTableNameFromBusinessObjectType(typeof(GLAccountsInfo)));
            lstGLAccountsList.InitTHSList(this, "GLAccounts", "GLAccounts");
        }

        public override void InitModuleObjectList()
        {            
        }

        public override void InitGridControlInTHSList()
        {
            lstGLAccountsList.InitTHSListGridControl();
        }

        public override void SetDefaultModuleObjectsList()
        {
            try
            {

            }
            catch (Exception)
            {
                return;
            }
        }

        #endregion

        #region Invalidate Module Objects functions


        public override void InvalidateModuleObjects(int iObjectID)
        {
        }


        #endregion

        #region Save Module Objects functions

        public override void SaveModuleObjects()
        {
            

        }

        #endregion

        
        


    }
}
